Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add blur intensity #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add blur intensity #15

wants to merge 1 commit into from

Conversation

pboulch
Copy link
Contributor

@pboulch pboulch commented Feb 6, 2023

Add a parameter in config to manage blur intensity

@pboulch
Copy link
Contributor Author

pboulch commented Feb 28, 2023

Is it possible to review this PR please ?

Copy link
Collaborator

@mikhailmaslo mikhailmaslo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CustomIntensityVisualEffectView looks hacky, also intensity is not a part of standard UIVisualEffectView

So, I suggest to provide a way to customize BottomSheet views through, for example, delegate. In this way, you can provide your own view (CustomIntensityVisualEffectView)

In this delegate method can be a method:

func makeShadowView(
    presentationViewController: UIPresentationViewController,
    configuration: BottomSheetConfiguration
) -> UIView

Then, this method is used by presentation controller to make a shadow. If nothing is provided, default implementation (current) will be used

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants